package org.example.aienglishapp_login;

import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.security.Keys;

import java.security.Key;

import io.jsonwebtoken.io.Encoders;

/**
 * @author Asus
 */
public class KeyGenerator {
    public static void main(String[] args) {
        Key key = Keys.secretKeyFor(SignatureAlgorithm.HS512);
        String encodedKey = Encoders.BASE64.encode(key.getEncoded());
        System.out.println("Generated 512-bit key: " + encodedKey);
    }
}